package com.letoken.platform.repo.sss.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2024-09-05
 */
@Getter
@Setter
@TableName("app_user_info")
@ApiModel(value = "AppUserInfo对象", description = "")
public class AppUserInfo extends Model<AppUserInfo> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Integer id;

    @ApiModelProperty("账号")
    @TableField("user")
    private String user;

    @ApiModelProperty("密码")
    @TableField("password")
    private String password;

    @ApiModelProperty("上级id")
    @TableField("invite_id")
    private String inviteId;

    @ApiModelProperty("关联钱包地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("邀请码")
    @TableField("code")
    private String code;

    @ApiModelProperty("左区id")
    @TableField("code_l")
    private String codeL;

    @ApiModelProperty("右区id")
    @TableField("code_r")
    private String codeR;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("dapp地址")
    @TableField("user_address")
    private String userAddress;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
